﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace WebAPITest2.Controllers
{
    public class externalController : ApiController
    {
        [HttpPost]
        public object infoCollect([FromBody]IllegalDataModel value)
        {
            string val = JsonConvert.SerializeObject(value);
            Console.WriteLine(val);

            ReturnDataModel model = new ReturnDataModel();
            model.code = "1";
            model.message = "success";

            return model;
        }
    }
}
